import React from 'react'
import './Square.less'

export default class Square extends React.Component {

  state = {
    value: ''
  }

  buttonClick () {
    this.props.onClick()
  }

  render () {
    return (
      <button className="square" onClick={this.buttonClick.bind(this)}>
        {this.props.value}
      </button>
    )
  }
}
